<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Hastalık Sihirbazı</title>
        <link href="Tema.css" rel="stylesheet" type="text/css"></link>
    </h:head>
    <h:body>
        <h:form prependId="false">
            <div id="wrapper">
                <div id="logo">
                </div>
                <div id="header">
                </div>
                <div class="page">
                    <div id="page-bgtop">
                        <div id="dummy"></div>
                        <p:panel id="panelsidebar" header="Erişim Noktaları">
                            <ui:include src="SaglikKuruluMenu.xhtml"/>
                        </p:panel>
                        <div id="content">
                            <p:panel id="panel" header="Hastalık Sihirbazı"> 
                                    <h:panelGrid id="onaylama">  
                                        <p:panel id="panelHastalik" header="Hastalık">
                                            <p>
                                                <b><h:outputText value="#{SaglikKuruluDenetci.secilenHastalik.tanim}" /></b>
                                            </p>
                                            <p>
                                                <i><h:outputText value="#{SaglikKuruluDenetci.secilenHastalik.aciklama}" /></i>
                                            </p>
                                            <p>
                                                <p:dataTable var="belirti" value="#{SaglikKuruluDenetci.secilenHastalik.belirtiler}" id="belirtiListesi">
                                                    <f:facet name="header">  
                                                        Hastalık Belirtileri
                                                    </f:facet>
                                                    <p:column headerText="Belirti">  
                                                        #{belirti.tanim}  
                                                    </p:column>
                                                </p:dataTable>
                                            </p>
                                            <p>
                                                <p:dataTable var="soru" value="#{SaglikKuruluDenetci.sorular}" id="soruListesi">
                                                    <f:facet name="header">  
                                                        Belirtiler - Sorular
                                                    </f:facet>
                                                    <p:column headerText="Soru">  
                                                        #{soru.tanim}  
                                                    </p:column>
                                                    <p:column headerText="Seçenekler">  
                                                        #{soru.secenekTipi}  
                                                    </p:column>
                                                    <p:column headerText="Belirti">  
                                                        #{soru.belirti.tanim}  
                                                    </p:column>
                                                </p:dataTable>
                                            </p>
                                        </p:panel>
                                        <p:panel id="panelTeshis" header="Teşhis">
                                            <p>
                                                <h:outputText value="#{SaglikKuruluDenetci.secilenHastalik.teshis.tanim}" />
                                            </p>
                                            <p>
                                                <h:outputText value="Uzmanlık Alanı: #{SaglikKuruluDenetci.secilenHastalik.teshis.uzmanlikAlani}" />
                                            </p>
                                        </p:panel>
                                        <p:panel id="panelTedavi" header="Tedavi">
                                            <p>
                                                <h:outputText value="#{SaglikKuruluDenetci.secilenHastalik.tedavi.aciklama}" />
                                            </p>
                                        </p:panel>
                                    </h:panelGrid>  
                                    <p:commandButton value="Kaydet" update="bilgilendirme" icon="ui-icon-disk" actionListener="#{SaglikKuruluDenetci.hastaligiKaydet}"/>   
                            </p:panel>
                        </div>
                        <div style="clear: both;">&nbsp;</div>
                    </div>
                </div>
                <div id="footer-bgcontent">
                    <div id="footer" align="center">
                        <p>E-Doktor</p>
                    </div>
                </div>
            </div>
        </h:form>
    </h:body>
</html>

